﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using DonutMgmtSystemFoundation.Helpers;

namespace DonutMgmtSystemFoundation.Controllers
{
    public class LanguageController : Controller
    {
        public ActionResult ChangeLanguage(string language)
        {
            string url = Request.UrlReferrer.AbsoluteUri;

            SessionContext.SetLanguage(language);

            return Redirect(url);
        }

    }
}
